﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using FxWinSuper.Annotations;

namespace FxWinSuper.UI.Controls
{
	/// <summary>
	/// FxDivider.xaml 的交互逻辑
	/// </summary>
	public partial class FxDivider : UserControl, INotifyPropertyChanged
	{
		public FxDivider()
		{
			InitializeComponent();
		}

		public event PropertyChangedEventHandler PropertyChanged;

		[NotifyPropertyChangedInvocator]
		protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
		{
			PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
		}

		private Brush _lineBrush = new SolidColorBrush(Colors.Gainsboro);

		public Brush LineBrush
		{
			get => _lineBrush;
			set
			{
				_lineBrush = value;
				OnPropertyChanged();
			}
		}

		private double _lineHeight = 1d;

		public double LineHeight
		{
			get => _lineHeight;
			set
			{
				_lineHeight = value;
				OnPropertyChanged();
			}
		}
	}
}
